package com.zh.servicer.dao;


import com.zh.servicer.domain.RoleUserIdDO;
import com.zh.servicer.domain.ServiceRoleDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 角色
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2019-04-16 09:43:46
 */
@Mapper
public interface ServiceRoleDao {

	ServiceRoleDO get(String roleId);
	
	List<ServiceRoleDO> list();
	
	int count(Map<String, Object> map);
	
	int save(ServiceRoleDO role);
	
	int update(ServiceRoleDO role);
	
	int remove(String role_id);
	
	int batchRemove(String[] roleIds);

	List<Long> listRoleId(Long userId);

	int removeByUserId(String userId);

	int removeByRoleId(String roleId);

	int batchSave(List<RoleUserIdDO> list);

	int batchRemoveByUserId(String[] ids);
}
